package org.sbt.web;



import javax.annotation.Resource;

import org.sbt.mapper.UserMapper;
import org.sbt.model.User;
import org.sbt.service.Demo2Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class TestController {
	
	@Autowired
	private Demo2Service demo2Service;
	@Resource
	private UserMapper userMapper;
	@RequestMapping("/test7")
	public String testName() {
		User u = demo2Service.load(1);
		System.out.println(u);
		System.out.println(demo2Service==null);
		System.out.println(demo2Service.sayHello("sssss2222"));
//		String s = demoService.sayHello("22222");
//		System.out.println(s);
		return "hello:"+demo2Service.sayHello("sssss2222")+u;
		
	}
}
